package com.atguigu.jxc.controller;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.ReturnList;
import com.atguigu.jxc.service.ReturnListGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("returnListGoods")
@RestController
public class ReturnListGoodsController {

    @Autowired
    ReturnListGoodsService returnListGoodsService;

//退货单保存
    /**
     * 请求URL：http://localhost:8080/returnListGoods/save?returnNumber=TH1605768591211（退货单号前端生成）
     * 请求参数：ReturnList returnList, String returnListGoodsStr
     * 请求方式：POST
     * 返回值类型：JSON
     * 返回值：ServiceVO
     */
    public ServiceVO save(ReturnList returnList, String returnListGoodsStr){


            return  new ServiceVO(100,"请求成功",null);
    }


}
